#executeQuery expects a data set in return and if you use it with the wrong input it freaks out
Explore tagged Tumblr posts
Text
ahh i ran into some trouble with the input file containing messed up data rows, so i wrote a method that ruthlessly throws out all lines i cant deal with. blessed regex, my love.
#tütensuppe#it still doesnt write to database for SOME reason but the heavy lifting is done~#i did originally implement a regex checker for the date parser that i just moved over#also at the beginning i have to check if the table i want to write to exists at all and if not create it#there i had some fun issues with the database 'not responding' that turned out to be me using the wrong method#executeQuery expects a data set in return and if you use it with the wrong input it freaks out#use execute(statement) for things like create/alter table/delete!
0 notes